<template>
  <div class="tabs">
    <vab-card class="tabs-card" shadow="hover">
      <el-tabs v-model="activeName">
        <el-tab-pane label="客户TOP10" name="first">
          <el-table :data="tableData" height="280">
            <el-table-column label="客户名称" prop="date" />
            <el-table-column label="省份" prop="province" />
            <el-table-column label="市区" prop="city" />
            <el-table-column label="地址" prop="address" />
            <el-table-column label="联系人" prop="name" />
            <el-table-column label="电话" prop="zip" />
            <template #empty>
              <el-empty class="vab-data-empty" description="暂无数据" />
            </template>
          </el-table>
        </el-tab-pane>
        <el-tab-pane label="去年TOP10客户" name="second">
          <el-table :data="tableData" height="280">
            <el-table-column label="客户名称" prop="date" />
            <el-table-column label="省份" prop="province" />
            <el-table-column label="市区" prop="city" />
            <el-table-column label="地址" prop="address" />
            <el-table-column label="联系人" prop="name" />
            <el-table-column label="电话" prop="zip" />
            <template #empty>
              <el-empty class="vab-data-empty" description="暂无数据" />
            </template>
          </el-table>
        </el-tab-pane>
      </el-tabs>
    </vab-card>
  </div>
</template>

<script>
  export default defineComponent({
    data() {
      return {
        activeName: 'first',
        tableData: [
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
          {
            date: '高阳三利毛巾纺织有限公司',
            name: '王小虎',
            province: '河北省',
            city: '保定市',
            address: '河北省保定市高阳县',
            zip: '0312-2943095',
          },
        ],
      }
    },
  })
</script>

<style lang="scss" scoped>
  :deep() {
    .el-card {
      height: 383px !important;
    }
  }
</style>
